package com.blitscreen.utils.monitor 
{
	import com.kairos.engine.RTEvent;	
	import com.blitscreen.utils.monitor.AbstractAverageRenderQueueMonitorField;
	import com.blitscreen.render.RenderQueue;
	import com.bourre.structures.Range;	

	/**
	 * @author Cedric Nehemie
	 */
	public class AverageRenderTimeField extends AbstractAverageRenderQueueMonitorField 
	{
		public function AverageRenderTimeField ( renderQueue : RenderQueue, 
												 name : String = "Average render time", 
												 dr : Range = null, 
												 col : Number = NaN )
		{
			super( renderQueue, name, 0, "ms", dr, 50, NaN );
		}
		
		override public function registerValue ( e : RTEvent ) : void
		{
			_registerValue( _oRenderQueue.getLastRenderTime() );
		}
	}
}
